]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: Fix fallback layout when using variants
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 23 Mar 2020 15:14:47 +0000 (16:14 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 23 Mar 2020 15:20:38 +0000 (16:20 +0100)
Commit c1ec7b2ff meant to fall back to the base layout in case
a variant like `fr+oss` is set up, but as we are checking for
'+' on the array rather than the layout name, the fallback only
"works" for a layout that is literally called '+', whoops.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2471

js/ui/keyboard.js

index 635d9b12e5d2409343e5aa95219b8d960ba80b66..7d56ef9c8fc8da88266e280649515e7de8409694 100644 (file)
@@ -498,7 +498,7 @@ var Key = GObject.registerClass({
 var KeyboardModel = class {
     constructor(groupName) {
         let names = [groupName];
-        if (names.includes('+'))
+        if (groupName.includes('+'))
             names.push(groupName.replace(/\+.*/, ''));
         names.push('us');